<?php
/**
 * Created by PhpStorm.
 * User: haobin
 * Date: 2016/10/24
 * Time: 14:56
 */
//跳转页面
require('../conn.php');
require('../functions.php');
$shareRow = $mysql->query("select * from `sharesite` where `type`=1 and `state`=1 ORDER BY rand() limit 1");
$shareSite = "http://".$shareRow[0]['name']."/admin/comment.php";
//动态id和用户id
$aid = $_GET['aid'];
$uid = $_GET['uid'];
$shareUrl = $shareSite."?aid={$aid}&uid=".$uid;
header("Location:{$shareUrl}");